package com.dormitory.management.system.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dormitory.management.system.entity.Health;
import com.dormitory.management.system.req.HealthPageReq;
import com.dormitory.management.system.req.HealthUpdateReq;
import com.dormitory.management.system.resp.HealthPageResp;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dormitory.management.system.req.HealthSaveReq;

/**
 * <p>
 * 防疫健康表 服务类
 * </p>
 *
 * @author
 * @since 2021-12-17
 */
public interface HealthService extends IService<Health> {
     IPage<HealthPageResp> getPage(HealthPageReq req);

     boolean save(HealthSaveReq req);

     boolean delete(Long id);

     boolean update(HealthUpdateReq req);

     int countTodayDeclared(String username);

     int countYesterdayException(String username);

     int countTodayException(String username);

     Health select(String username);
}
